package com.example.demo.util;

public enum ResultCode {

    SUCCESS("200", "成功"),
    NOT_LOGIN("401", "没有登录"),
    ERROR("500", "失败");

    private String code;

    private String message;

    ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
